package com.multitrack.datatype;

import java.io.Serializable;

public class Event extends Identity implements Serializable {

	private static final long serialVersionUID = 6837048192939725691L;

	private String leaderId;
	private String pw;
	private int lat;
	private int lon;

	public Event() {
		super();
	};

	public Event(String leaderId, String id, String name, String pw) {
		this.leaderId = leaderId;
		this.id = id;
		this.name = name;
		this.pw = pw;
	}

	public String getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(String leaderId) {
		this.leaderId = leaderId;
	}

	public String getPw() {
		return pw;
	}

	public void setPw(String pw) {
		this.pw = pw;
	}

	public int getLat() {
		return lat;
	}

	public void setLat(int lat) {
		this.lat = lat;
	}

	public int getLon() {
		return lon;
	}

	public void setLon(int lon) {
		this.lon = lon;
	}

	public void setEvnetInfo(Identity eventInfo) {
		this.id = eventInfo.getId();
		this.name = eventInfo.getName();
	}

	public String toString() {
		return "(" + leaderId + ", " + id + ", " + name + ", " + pw + ", "
				+ lat + ", " + lon + ")";
	}
}